import request from '@/utils/request'

//分页查询坑洞  params参数
export const getHoleList = (params) => request.get('/admin/pothole/potholePage', { params })

//新增坑洞
export const addHole = (data) => request.post('/admin/pothole', data)

//编辑坑洞
export const updateHole = (data) => request.put('/admin/pothole', data)

//删除坑洞
export const deleteHole = (id) => request.delete('/admin/pothole/' + id)
